{% extends 'base.html' %}

{% block content %}

<form class="form-inline my-2 my-lg-0" method="POST" action="{% url 'user' %}">
    {% csrf_token %}
          <input class="form-control mr-sm-2" name= "user" type="search" placeholder="Search" aria-label="Search">
          <button class="btn btn-outline-success my-2 my-sm-0" type="submit">搜索</button>
        </form>

    <!-- <h1>Hello {{user}}!</h1>
    <p>测试是否可以看到我！</p> -->
    {% if notfound %}
        <h2>{{notfound}}</h2>
    {% else %}
        <h1>Hello {{user}}!</h1>
    {%endif%}

{% endblock %}